#ifndef __MACRO_H__
#define __MACRO_H__

#define SAFE_RELEASE(l) if(l!=NULL){l->release();l = NULL;}
#define SAFE_DELETE(l)  if(l!=NULL){delete l; l = NULL;}
#define SAFE_ARRAY_DELETE(l) if(l!=NULL){ delete [] l; l = NULL;}

#endif